package com.seari.custody.enums;

/**
 * @author lxv1
 */



public enum MeetingListField {
    ONE(1, "projectName", "所属项目"),
    TWO(2, "meetingName", "会议名称"),
    THREE(3, "meetingOriginator", "会议发起人"),
    FOUR(4, "meetingUnits", "参会单位"),
    FIVE(5, "roomId", "会议室ID"),
    SIX(6, "type", "会议类型"),
    SEVEN(7, "startTime", "开始时间"),
    EIGHT(8, "endTime", "结束时间"),
    NINE(9, "duration", "会议总时长"),
    TEN(10, "maxOnline", "最大在线用户数"),
    ;
    private Integer index;
    private String field;
    private String fieldName;

    MeetingListField(Integer index, String field, String fieldName) {
        this.index = index;
        this.field = field;
        this.fieldName = fieldName;
    }

    public static MeetingListField byIndex(Integer index) {
        for (MeetingListField value : values()) {

            if (value.index.equals(index)) {
                return value;
            }

        }
        return null;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }
}
